//
//  BeseHttpClient.h
//  BJYShoppingMall
//
//  Created by Coder on 15/10/10.
//  Copyright © 2015年 BJY12. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIFormDataRequest.h"
#import "AppConfig.h"



//数据接口域名
#define MY_SDK_URL @"http://api.zlc99.com"

#define HTTP_GetTradeApplicationByTradeId @"GetTradeApplicationByTradeId"
#define HTTP_UploadHeadImg                @"UploadHeadImg"
#define HTTP_AddTradeComment              @"AddTradeComment"
#define HTTP_DealQrcode                   @"DealQrcode"




/*代理*/
@protocol HttpRequestDelegate <NSObject>
-(void)HttpRequestSuccess:(NSMutableDictionary*)dictionary requestType:(NSString*)requestType;
-(void)HttpRequestError:(NSError*)error;

@end

@interface BeseHttpClient : NSObject
{
    NSString *requestType;
}

@property (nonatomic,assign) id<HttpRequestDelegate> delegate;

/*获取评论的订单详情*/
-(void)GetTradeApplicationByTradeId:(NSString*)uid tradeid:(NSString*)tradeid;

/**
 *  获取二维码链接
 */
-(void)GetDealQrcode:(NSString*)userCookies code:(NSString*)code;

/**
 *  上传头像至服务器
 *
 *  @param imgData     图片的二进制
 *  @param uid    用户ID
 */
-(void)UploadHeadImg:(NSData*)imgData andUID:(NSString*)uid;
/**
 *  晒单评论
 */
-(void)AddTradeComment:(NSString*)userCookies tradeId:(NSString*)tradeId experience:(NSString*)experience Img1:(NSString*)Img1 Img2:(NSString*)Img2 Img3:(NSString*)Img3 score:(NSString*)score;


@end
